package com.jdrx.sw.sewage.beans.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(value = "MaintenanceRecordInfoVO", description = "保养记录详情")
public class MaintenanceRecordInfoVO {

    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty(value = "入库设备id")
    private Long devStorageId;

    @ApiModelProperty(value = "领用设备id")
    private Long devId;

    @ApiModelProperty(value = "设备名称")
    private String deviceName;

    @ApiModelProperty(value = "物料名称")
    private String materielName;

    @ApiModelProperty(value = "设备品类")
    private String categoryName;

    @ApiModelProperty(value = "设备规格")
    private String dossierSpec;

    @ApiModelProperty(value = "厂家名字")
    private String factoryName;

    @ApiModelProperty(value = "厂区（数字对应相应厂区）")
    private String factoryPeriod;

    @ApiModelProperty(value = "工艺单元名称")
    private String processunitName;

    @ApiModelProperty(value = "派单人")
    private String singlePerson;

    @ApiModelProperty(value = "派单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createAt;

    @ApiModelProperty(value = "维保时间即截止时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date maintenanceTime;

    @ApiModelProperty(value = "维保意见/维修意见")
    private String opinion;

    @ApiModelProperty(value = "预计费用")
    private Double estimatedCost;

    @ApiModelProperty(value = "维保人")
    private String maintenanceBy;

    @ApiModelProperty(value = "完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date completeTime;

    @ApiModelProperty(value = "保养/维修方式（保养/维修方式（紧固、清洁、标定、清洗、润滑、其他 /小修、中修、大修、其他 ）多个逗号分隔）英文逗号分隔")
    private String maintenanceType;

    @ApiModelProperty(value = "保养描述/维修描述")
    private String maintenanceDesc;

    @ApiModelProperty(value = "故障描述(维修才有？)")
    private String faultDesc;

    @ApiModelProperty(value = "维保照片（多个用英文逗号隔开）")
    private String attach;

    @ApiModelProperty(value = "实际费用")
    private Double actualCost;

    @ApiModelProperty(value = "设备编号")
    private String deviceNum;

    @ApiModelProperty(value = "设备SN号")
    private String snNum;

    @ApiModelProperty(value = "设备照片")
    private String devAttach;

    @ApiModelProperty(value = "库类型（3-使用 2-库存 1-报废）")
    private Integer devType;
}